package Thread.Test.Test5;

import java.util.Collections;

public class ThreadTest {
    public static void main(String[] args) {
        //有一个抽奖池
        //{10,5,20,50,100,200,500,800,2,80,300,700}
        //创建两个抽奖箱  随机从抽奖池获取奖项元素并打印在控制台
        //为了保证本次项目的复用性,这次用复杂的方法来做

        //将奖池数据放入到奖池中
        Collections.addAll(jackpot_p.list ,10,5,20,50,100,200,500,800,2,80,300,700);

        award_p1 t1 =new award_p1();
        award_p2 t2 =new award_p2();
        t1.setName("抽奖箱1");
        t2.setName("抽奖箱2");

        t1.start();
        t2.start();
    }
}
